package edu.gxmzu.task.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class LoginParam {
    // required = false 已弃用
    @Schema(description = "用户名", example = "user1")
    @NotNull(message = "用户名不能为空!")
    private String username;
    @Schema(description = "密码", example = "pwd1")
    @NotNull(message = "密码不能为空!")
    private String password;
    @Schema(description = "邮箱，注册时候使用")
    private String name;
    @Schema(description = "邮箱，注册时候使用")
    private String email;
    @Schema(description = "角色，注册时使用（0普通用户，1管理员）")
    private Integer role;
}
